using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace GlobalLib
{
    public class Verify
    {
        public static bool Email(string email)
        {
            Regex objNotWholePattern = new Regex("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");

            return objNotWholePattern.IsMatch(email);
        }

        public static bool Number(string number)
        {
            Regex objNotWholePattern = new Regex("^-?\\d+$");

            return objNotWholePattern.IsMatch(number);
        }

        public static bool Word(string word)
        {
            Regex objNotWholePattern = new Regex("^[A-Za-z]+$");

            return objNotWholePattern.IsMatch(word);
        }
    }
}
